<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>justify-content</title>
    <style>
        div{
            display: flex;
            width: 900px;
            height: 300px;
            background-color: pink;
            /* 使用这个属性 是根据主轴决定的 使用之前要确认主轴是哪个 默认的是row*/
            flex-direction: row;
            /* justify-content属性的默认值 主轴x 从左到右 */
            /* justify-content: flex-start; */
            /* 从尾部到开始 */
            /* justify-content: flex-end; */
            /* 主轴居中对齐 */
            /* justify-content: center; */
            /* 平分剩余空间 */
            /* justify-content: space-around; */
            /* 两边的盒子先贴边，再平分剩余的空间 */
            justify-content: space-between;
        }
        span{
            width: 200px;
            height: 180px;
            background-color: purple;
        }
    </style>
</head>
<body>
    <div>
        <span>1</span>
        <span>2</span>
        <span>3</span>
        <span>4</span>
    </div>
</body>
</html>